package org.lanqiao.tjut.seriver.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.BalanceFormBean;
import org.lanqiao.tjut.dao.BalanceFormDao;
import org.springframework.stereotype.Service;

@Service("BalanceService")
public class BalanceService implements org.lanqiao.tjut.seriver.BalanceService {

	@Resource
	private BalanceFormDao balanceDao;

	@Override
	public List<BalanceFormBean> selectAllUsersBalance() {

		return balanceDao.selectAllUsersBalance();
	}

	@Override
	public BalanceFormBean selectMyBalance(String userAccount) {

		return balanceDao.selectMyBalance(userAccount);
	}

	@Override
	public int updateUserBalance(BalanceFormBean bfBean) {

		return balanceDao.updateUserBalance(bfBean);
	}

	@Override
	public int updateUserBalanceCode(BalanceFormBean bfBean) {

		return balanceDao.updateUserBalanceCode(bfBean);
	}

}
